Request csd for menus
authorMatthias Clasen <mclasen@redhat.com>
Sat, 7 Jun 2014 01:30:55 +0000 (21:30 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 9 Jun 2014 18:15:24 +0000 (14:15 -0400)
Use the new private GtkWindow api to request
client-side decorations for menus.

https://bugzilla.gnome.org/show_bug.cgi?id=731187

gtk/gtkmenu.c

index cb8d98e641036ca18e2a7e2e58595c35b63c52c3..7c137272aab0331d9578c7c5594951c7ba87aa1f 100644 (file)
@@ -1099,6 +1099,7 @@ gtk_menu_init (GtkMenu *menu)
   gtk_window_set_resizable (GTK_WINDOW (priv->toplevel), FALSE);
   gtk_window_set_mnemonic_modifier (GTK_WINDOW (priv->toplevel), 0);
 
+  _gtk_window_request_csd (GTK_WINDOW (priv->toplevel));
   gtk_style_context_add_class (gtk_widget_get_style_context (priv->toplevel), "popup");
 
   /* Refloat the menu, so that reference counting for the menu isn't